-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lk2nd: display: panel: Introduce custom oem_panel implementation #363
lk2nd: display: panel: Introduce custom oem_panel implementation #363
Conversation
6cb1453
to
63cfbba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some warnings.
lk2nd/display/panel/generated/lk_panel_ili9806e_boyi_byt45mp41t1m_4p5cpt.h
Show resolved
Hide resolved
63cfbba
to
b25ae53
Compare
bc80423
to
cb963fe
Compare
@@ -28,7 +28,9 @@ static int lk2nd_simplefb_dt_update(void *dtb, const char *cmdline, | |||
int ret, resmem_offset, chosen_offset, offset; | |||
uint32_t mem_ph, fb_size; | |||
char tmp[32], args[16]; | |||
#if WITH_LK2ND_DISPLAY_CONT_SPLASH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit subject -> "...: Only support arguments if const-splash is used" maybe
lk2nd/display/rules.mk
Outdated
else ifneq ($(LK2ND_DISPLAY),) | ||
include $(LOCAL_DIR)/panel/rules.mk | ||
else | ||
$(error Display '$(LK2ND_DISPLAY)' is not supported yet) | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else ifneq ($(LK2ND_DISPLAY),) | |
include $(LOCAL_DIR)/panel/rules.mk | |
else | |
$(error Display '$(LK2ND_DISPLAY)' is not supported yet) | |
endif | |
else ifneq ($(LK2ND_DISPLAY),) | |
include $(LOCAL_DIR)/panel/rules.mk | |
else | |
$(error Please specify the display with LK2ND_DISPLAY option) | |
endif |
since it always be empty value for the last else now.
panel->paneltiminginfo = &hx8394d_720p_video_timing_info; | ||
panel->panelresetseq = &hx8394d_720p_video_reset_seq; | ||
panel->backlightinfo = &hx8394d_720p_video_backlight; | ||
pinfo->mipi.panel_on_cmds = hx8394d_720p_video_on_command; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pinfo->mipi.panel_on_cmds = hx8394d_720p_video_on_command; | |
pinfo->mipi.panel_on_cmds = hx8394d_720p_video_on_command; | |
pinfo->mipi.panel_off_cmds = hx8394d_720p_video_off_command; |
Can you check if this doesn't break the display? Not sure why lmdpdg doesn't generate this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested-by: Nikita Travkin <[email protected]>
9b1b629
to
147eda5
Compare
The oem_panel implementation from Qualcomm is terrible because it always includes *all* panel implementations in the binary and requires writing lots of code to add support for a new panel. To make this easier for lk1st, let's add a custom oem_panel implementation. The panel implementation is automatically selected using LK1ST_PANEL= on the make command line, which should be the panel ID in lower case, e.g. LK1ST_PANEL=adv7533_1080p_video.
``` lk2nd/display/panel/oem_panel.c:45:5: warning: no previous prototype for 'oem_panel_select' [-Wmissing-prototypes] 45 | int oem_panel_select(const char *panel_name, struct panel_struct *panel, | ^~~~~~~~~~~~~~~~ ```
Otherwise the screen does not turn on.
147eda5
to
28387ff
Compare
Thanks! |
No description provided.